

class DefaultConfig(object):

    # 微信开发者appid
    WECHAT_APPID = 'wxf4188c23034ab8fb'
    # 微信开发者密匙
    WECHAT_SCRETE = '9c51d5763c96ff4f4af574d7cf0fd708'

    # 请求token的url
    ACCESS_TOKEN_URL = 'https://api.weixin.qq.com/cgi-bin/token?' \
                       'grant_type=client_credential&appid=%s&secret=%s' % (WECHAT_APPID, WECHAT_SCRETE)

    # 能处理的微信message类型集合
    HANDLE_TYPE = set(['text', 'image', 'event'])

    # 回复图片的命令
    IMAGE_COMMAND = '#'
    # 能识别的词云图片集合
    HANDLE_TEXT = set(['rushia'])

    # 图片路径
    IMAGE_PATH = '/home/ubuntu/WeChatProject/data/image/'

    TEXT_COMMAND = {
        '天气': 'get_weather'
    }

    # redis消息队列
    # REDISMQ = 'redis://127.0.0.1:6379/0'

    # 发送邮件时对应的消息内容
    EVENT_MESSAGE = {
        'subscribe': '刚刚关注了你',
        'unsubscribe': '刚刚取消了你的关注',
    }

    # 请求天气信息的url
    WEATHER_URL = 'https://api.easyapi.com/weather/city.json'

    # mysqlalchemy数据库配置
    SQLALCHEMY_DATABASE_URI = 'mysql://root:mysql@localhost/hololive'  # 数据库uri
    SQLALCHEMY_TRACK_MODIFICATIONS = False  # 追踪数据的修改信号
    SQLALCHEMY_ECHO = True  # 显示生成的SQL语句，可用于调试



